$(document).ready( function() {
	PlatformaWP = (function() {
		return {
			executeServerAction: function(url, context, onSuccessFn) {
				$.post(url, context, function(response) {
					onSuccessFn(response);
				});
			}
		};
	})();

	$("#getRemoteData").click(function() {
  		PlatformaWP.executeServerAction('request.php', {
  		}, function(response) {
  			console.log($.parseJSON(response));
  		});
	});
	
});

